package com.habitreformer;

import android.app.TabActivity;
import android.os.Bundle;
import android.widget.TabHost;

public class MainActivity extends TabActivity
{
	private static final String EMPTY_STRING = "";
	public static final String TAB_TODAY = "Today";
	public static final String TAB_ADD = "Add";
	public static final String TAB_REVIEW = "Review";
	public static final String TAB_SETTING = "Setting";
	// public static final String Tab5 = "Tab5";

	TabHost tHost;

	/** Called when the activity is first created. */
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		initTabs();

	}

	/**
	 * 
	 */
	private void initTabs()
	{
		tHost = getTabHost();
		tHost.addTab(tHost.newTabSpec(TAB_ADD).setIndicator(EMPTY_STRING,
				getResources().getDrawable(R.drawable.add)).setContent(
				R.id.add_habit));
		tHost.addTab(tHost.newTabSpec(TAB_TODAY).setIndicator(EMPTY_STRING,
				getResources().getDrawable(R.drawable.today)).setContent(
				R.id.settings));

		tHost.addTab(tHost.newTabSpec(TAB_REVIEW).setIndicator(EMPTY_STRING,
				getResources().getDrawable(R.drawable.calendar)).setContent(
				R.id.settings));
		tHost.addTab(tHost.newTabSpec(TAB_SETTING).setIndicator(EMPTY_STRING,
				getResources().getDrawable(R.drawable.settings)).setContent(
				R.id.settings));
	}
}